package edu.uj.petri.commands;

/** interface for object capable of saving its state in a memento and
 *  restoring state to a moment given by the memento
 *  @author Piotrek
 */
public interface Restorable {
    /**
     * stores internal state in a memento.
     */
    public Memento getMemento();

    /**
     * restores internal state of object to state stored in the memento.
     */
    public void applyMemento(Memento memento);
}
